/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
package com.erp.ledger.je.dao;

import java.util.List;

import org.redragon.framework.hibernate.DaoCRUDIF;

import com.erp.ledger.je.dao.model.GLJeHead;
import com.erp.ledger.je.dao.model.GLJeHeadCO;

public interface GLJeHeadDao extends DaoCRUDIF<GLJeHead, GLJeHeadCO>{
    
    //更新头状态
    public abstract void updateHeadForStatus(Integer headId, String status);
    
    //更新头审批状态
    public abstract void updateHeadForApproveStatus(Integer headId, String approveStatus);
    
    //获取日记账数量
    public abstract int getHeadNum(String startDate, String endDate);
    
    //更新日记账过账状态
    public abstract void updateJePostStatus(Integer headId);
    
    //获取日记账头（根据多id）
    public abstract List<GLJeHead> getGLJeHeadPostListByIds(String headIds);
    
    //获取日记账头（根据期间）
    public abstract List<GLJeHead> getGLJeHeadPostListByPeriodName(String periodName);
    
    //根据状态和审核状态获取日记账数量
    public int getJeNumByStatus(String status, String approveStatus, String postStatus, String periodName);
}